package com.bjpowernode.entity.query;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class UserQuery {

    private Integer id;

    @NotEmpty(message = "不能为空")
    private String loginAct;

    @Size(min = 6, max = 16, message = "密码长度应在6-16之间")
    private String loginPwd;

    private String name;

    private String phone;

    private String email;

    private Integer accountNoExpired;

    private Integer credentialsNoExpired;

    private Integer accountNoLocked;

    private Integer accountEnabled;

    //修改时需要这个属性当个中介
    private String loginPwd2;

}
